package com.lkqandzzy.dao;


import com.lkqandzzy.entity.Record;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RecordDao {

    //获取总条数
    //@Param注解单一属性
    Integer totalCount(@Param("customer_name") String customer_name, @Param("theme") String theme);
    //获取用户列表
    //@Param注解单一属性
    List<Record> getRecordList(@Param("customer_name") String customer_name, @Param("theme") String theme, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);

    int deleteRecord(Integer r_id);
    int addRecord(Record record);
    int updateRecord(Record record);
    Record findRecordById(Integer r_id);
    List<Record> getAll();
}
